import Layout from '@/layout'
// 员工
const employees = {
  path: '/employees',
  component: Layout,

  children: [{
    path: '',
    name: 'employees',
    component: () => import('@/views/employees'),
    meta: { title: '员工管理', icon: 'people' }
  },
  {
    path: 'detail',
    name: 'detail',
    component: () => import('@/views/employees/detail'),
    hidden: true // 不在左侧菜单显示

  }]
}
// 组织架构
const departments = {
  path: '/departments',
  component: Layout,

  children: [{
    path: '',
    name: 'departments',
    component: () => import('@/views/departments'),
    meta: { title: '组织架构', icon: 'tree' }
  }]
}
// 审批
const approvals = {
  path: '/approvals',
  component: Layout,

  children: [{
    path: '',
    name: 'approvals',
    component: () => import('@/views/approvals'),
    meta: { title: '审批', icon: 'skill' }
  }]
}
// 考勤
const attendances = {
  path: '/attendances',
  component: Layout,

  children: [{
    path: '',
    name: 'attendances',
    component: () => import('@/views/attendances'),
    meta: { title: '考勤', icon: 'dashboard' }
  }]
}
// 权限管理
const permission = {
  path: '/permission',
  component: Layout,

  children: [{
    path: '',
    name: 'permission',
    component: () => import('@/views/permission'),
    meta: { title: '权限管理', icon: 'lock' }
  }]
}
// 薪水
const salarys = {
  path: '/salarys',
  component: Layout,

  children: [{
    path: '',
    name: 'salarys',
    component: () => import('@/views/salarys'),
    meta: { title: '薪水', icon: 'money' }
  }]
}
// 角色管理
const settings = {
  path: '/settings',
  component: Layout,

  children: [{
    path: '',
    name: 'settings',
    component: () => import('@/views/setting'),
    meta: { title: '角色管理', icon: 'setting' }
  }]
}
// 社保
const social = {
  path: '/social',
  component: Layout,

  children: [{
    path: '',
    name: 'social',
    component: () => import('@/views/social'),
    meta: { title: '社保', icon: 'table' }
  }]
}
export {
  employees, departments, approvals, attendances, permission, salarys, settings, social
}
